<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ include file="/common/common.jspf" %>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>test</title>

</head>
<script type="text/javascript">

    var oldWin = parent.$("iframe[title='商品明细管理']").get(0).contentWindow;

    var row =oldWin.$('#dg').datagrid("getSelected");
    alert("获取原窗口：");
  $(function () {
      alert("获取原窗口："+row.shopId);

       $('#we').form('load',{
           shopId:row.shopId,
           shopName:row.shopName,
           shopTitle:row.shopTitle,
           shopBrand:row.shopBrand,
           shopFaetrue:row.shopFaetrue,
           shopNumber:row.shopNumber,
           shopStripType:row.shopStripType,
           shopTime:row.shopTime,
           shopNotice:row.shopNotice,
           shopPrice:row.shopPrice,
           shopType:row.shopType,
           shopCase:row.shopCase,
           shopUnit:row.shopUnit,
           shopDescribe:row.shopDescribe,
           state:row.state
       });
  });

    //关闭对话窗口
    function getCloseModuleWin(){
        parent.$('#win').window('close');

    }



</script>
<body>
<div>
    <form  action="${proPath}/seeshop/amend.action" method="post" id="we">
        <div>

            <div id="tt"></div>

            <div data-options="region:'center'" style="padding:5px;background:#eee;">
                <div id="ttt" class="easyui-tabs" data-options="fit:true"  style="width:800px;height:350px;">
                    所选菜单 ：<INPUT TYPE="text" id="wz" name="shopType">
                    <div  style="padding:20px;" title="基本数据">

                       <input type="hidden" name="shopId">
                        商品名称:
                        <input class="easyui-validatebox" type="text" name="shopName"  />
                        商品品牌:
                        <input class="easyui-validatebox" type="text" name="shopBrand"  />
                        <br>
                        商品卖点：
                        <input class="easyui-validatebox" type="text" name="shopFaetrue"  />
                        商品编号:
                        <input class="easyui-validatebox" type="text" name="shopNumber" />
                        <br>
                        注意事项：
                        <input class="easyui-validatebox" type="text" name="shopNotice"/>
                        商品价格:
                        <input class="easyui-validatebox" type="text" name="shopPrice"  />
                        <br>
                        上架状态：
                        <select id="c" class="easyui-combobox" name="shopCase" style="width:100px;">
                            <option value="aa">请选择</option>
                            <option>上架</option>
                            <option>下架</option>
                        </select>
                        <br>
                        商品单位:
                        <select id="cc" class="easyui-combobox" name="shopUnit" style="width:200px;">
                            <option value="aa">请选择</option>
                            <option>盘</option>
                            <option>条</option>
                            <option>盒</option>
                            <option>包</option>
                            <option>瓶</option>
                        </select><br>

                    </div>
                    <div  style="padding:20px;" title="商品描述">

                        商品描述： <INPUT TYPE="text" STYLE="width:500px;height: 180px" name="shopDescribe">

                    </div>
                    <div  style="padding:20px;" title="规格参数">

                        库存状态：
                        <select id="cxx" class="easyui-combobox" name="state" style="width:100px;">
                            <option value="aa">请选择</option>
                            <option>在售</option>
                            <option>删除</option>
                        </select>


                    </div>
                </div>
            </div>

            <div data-options="region:'south',split:true" style="height:100px;" align="middle">
                <input type="submit" value="提交" > <input type="button" value="取消" onclick="getCloseModuleWin()" >
            </div>

        </div>
    </form>
</div>

</body>
</html>


